package com.techsoft;

import java.io.InputStream;
import java.io.OutputStream;

import javax.crypto.Cipher;

public interface DataConverter {
	public Object deserializeObject(Object source);

	public Object serializeObject(Object source);

	public void writeToOutputStream(Object obj, OutputStream out);

	public Object readFromInputStream(InputStream in) throws Exception;

	public Cipher getOutCipher() throws Exception;

	public Cipher getInCipher() throws Exception;

	public String getPrefix();

	public void setPrefix(String prefix);
}
